#pragma once
#include "NodePoint.h"

class LinePtr
{
public:
	NodePoint* Pt1 = nullptr;
	NodePoint* Pt2 = nullptr;
public:
	LinePtr() {};
	LinePtr(NodePoint* p1, NodePoint* p2){
		Pt1 = p1;
		Pt2 = p2;
	}
	~LinePtr() {}

public:
	double length() {
		return sqrt(double(pow(Pt2->x - Pt1->x, 2)) + double(pow(Pt2->y - Pt1->y, 2)));
	}

private:
};
